package de.hhbk.feedbackmodul.sessionbeans;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import de.hhbk.feedbackmodul.daointerfaces.QuestionSheetDaoIF;
import de.hhbk.feedbackmodul.entities.QuestionSheet;
import de.hhbk.feedbackmodul.remoteInterfaces.QuestionSheetRemoteIF;

@Stateless
public class QuestionSheetSessionBean implements QuestionSheetRemoteIF {

	@EJB
	private QuestionSheetDaoIF dao;
	
	@Override
	public List<QuestionSheet> getAllQuestionSheets() throws Exception {
		return dao.getAllQuestionSheets();
	}

	@Override
	public void createQuestionSheet(QuestionSheet questionSheet)
			throws Exception {
		dao.createQuestionSheet(questionSheet);

	}

	@Override
	public void updateQuestionSheet(QuestionSheet questionSheet)
			throws Exception {
		dao.updateQuestionSheet(questionSheet);

	}

	@Override
	public void deleteQuestionSheet(QuestionSheet questionSheet)
			throws Exception {
		dao.deleteQuestionSheet(questionSheet);
		
	}

}
